neworder( if(isset($_POST['submit'])) { $regno = trim($_POST['regno']); header("location: printpage.php?reg=$regno") ; } ?>